package com.vote.services.impl;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import com.vote.dao.VoteOptionDAO;
import com.vote.services.OptionService;

public class OptionServiceImpl implements OptionService{

	@Autowired 
	private VoteOptionDAO voteoptiondao;
	
	private static final Logger logger = Logger.getLogger(UserServiceImpl.class);
	@Override
	public void updateOptionCount(int id) {
	
		voteoptiondao.addCount(id);
		logger.info("udpate option success!!!");
		
	}

}
